package com.gujia.concurrency.example.threadlocal;

public class RequestHolder {

    private final static  ThreadLocal<Long> requestHolder = new ThreadLocal<>();

    public static Long getId() {
        return requestHolder.get();
    }

    public static void setId(long id) {

        requestHolder.set(id);
    }

    public static void remove() {

        requestHolder.remove();
    }



}
